package varton.lazy.safe;

public class Wife1 {
    private static Wife1 wife = null;

    private Wife1(){

    }

    public synchronized static Wife1 newInstance(){
        if (wife == null){
            wife = new Wife1();
        }
        return wife;
    }

    public void haveBaby(){
        System.out.println("能生娃。。。");
    }
}
